home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2008 October / MacFormat Issue200 October 2008.bin / pc / DiscContents / Software / Recommended / Houdini Apprentice 9.5.170 / houdini.dmg / Houdini.pkg / Distribution
Encoding:
Extensible Markup Language  |  2008-07-18  |  5.9 KB  |  104 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <installer-script minSpecVersion="1.000000" authoringTool="" authoringToolVersion="" authoringToolBuild="">
  3.     <title>Houdini 9.5.170</title>
  4.     <options customize="always" allow-external-scripts="no"/>
  5.     <domains enable_localSystem="true"/>
  6.     <installation-check script="pm_install_check();"/>
  7.     <volume-check script="pm_volume_check();"/>
  8.     <script>
  9. function apprentice_ok() 
  10. {    
  11.     return !choices.commercial.selected;
  12. }
  13.  
  14.  
  15. function commercial_ok() 
  16. {
  17.     return !choices.apprentice.selected;
  18. }
  19.  
  20.  
  21. function pm_volume_check() {
  22.   if(!(my.target.systemVersion.ProductVersion >= '10.5.0')) {
  23.     my.result.title = 'Failure';
  24.     my.result.message = 'Houdini requires at least OS X 10.5 version (Leopard).';
  25.     my.result.type = 'Fatal';
  26.     return false;
  27.   }
  28.   return true;
  29. }
  30.  
  31.  
  32. function pm_install_check() {
  33.   if(!(system.gestalt('sysa') == '10')) {
  34.     my.result.title = 'Invalid Architecture';
  35.     my.result.message = 'Houdini for OS X only supports Macs with Intel processors. ';
  36.     my.result.type = 'Fatal';
  37.     return false;
  38.   }
  39.   if(!(system.sysctl('hw.cpu64bit_capable') == '1')) {
  40.     my.result.title = 'Unsupported platform';
  41.     my.result.message = 'Houdini for OS X requires a 64-bit Intel Macintosh.';
  42.     my.result.type = 'Fatal';
  43.     return false;
  44.   }
  45.   return true;
  46. }
  47.  
  48.  
  49.  
  50. function pm_apprentice_selected() {
  51.   result = true;
  52.   result = result && (apprentice_ok() == true);
  53.   return result;
  54. }
  55.  
  56.  
  57. function pm_commercial_selected() {
  58.   result = true;
  59.   result = result && (commercial_ok() == true);
  60.   return result;
  61. }</script>
  62.     <background file="background" alignment="topleft" scaling="none"/>
  63.     <license file="License"/>
  64.     <choices-outline>
  65.         <line choice="applications"/>
  66.         <line choice="framework"/>
  67.         <line choice="apprentice"/>
  68.         <line choice="commercial"/>
  69.     </choices-outline>
  70.     <choice id="applications" title="Houdini Applications" tooltip="Houdini's suite of applications" description="The applications which make up the Houdini suite of tools." start_enabled="false">
  71.         <pkg-ref id="com.sidefx.audioRecorder-9.5.170.pkg"/>
  72.         <pkg-ref id="com.sidefx.digitalAssetViewer-9.5.170.pkg"/>
  73.         <pkg-ref id="com.sidefx.geometryViewer-9.5.170.pkg"/>
  74.         <pkg-ref id="com.sidefx.houdiniEscape-9.5.170.pkg"/>
  75.         <pkg-ref id="com.sidefx.houdini-9.5.170.pkg"/>
  76.         <pkg-ref id="com.sidefx.imageViewer-9.5.170.pkg"/>
  77.         <pkg-ref id="com.sidefx.licenseAdministrator-9.5.170.pkg"/>
  78.         <pkg-ref id="com.sidefx.houdiniShell-9.5.170.pkg"/>
  79.         <pkg-ref id="com.sidefx.houdiniuninstaller-9.5.170.pkg"/>
  80.         <pkg-ref id="com.sidefx.foldericon-9.5.170.pkg"/>
  81.     </choice>
  82.     <choice id="framework" title="Houdini Framework" tooltip="Houdini Framework" description="Central framework that holds Houdini's shared libraries and resources." start_enabled="false">
  83.         <pkg-ref id="com.sidefx.framework-9.5.170.pkg"/>
  84.     </choice>
  85.     <choice id="apprentice" title="Apprentice Licensing" tooltip="Enables Apprentice Licensing for Houdini" description="This option configures Houdini for use with a non-commercial license, such as Houdini Apprentice or Apprentice HD.  It is recommended that you choose this option when possible as it does not require a separate license server and is therefore more simple and reliable." start_selected="false" selected="pm_apprentice_selected()">
  86.         <pkg-ref id="com.sidefx.ApprenticeLicensing-9.5.170.pkg"/>
  87.     </choice>
  88.     <choice id="commercial" title="License Server" tooltip="Installs the Houdini License server" description="This option installs Houdini's license server and sets up for commercial use.  This option should be chosen if Houdini is going to be run with a full commercial license or if you wish to serve licenses from this machine.  This option will start a license server on your machine.  For Houdini Apprentice and Apprentice HD, it is recommended that you choose the "Apprentice Licensing" option instead.  If you do choose "Commercial Licensing" it is still possible to use non-commercial licenses." selected="pm_commercial_selected()">
  89.         <pkg-ref id="com.sidefx.sesinetd-9.5.170.pkg"/>
  90.     </choice>
  91.     <pkg-ref id="com.sidefx.audioRecorder-9.5.170.pkg" installKBytes="272" version="9.5.170" auth="Root">#audioRecorder.pkg</pkg-ref>
  92.     <pkg-ref id="com.sidefx.digitalAssetViewer-9.5.170.pkg" installKBytes="312" version="9.5.170" auth="Root">#digitalAssetViewer.pkg</pkg-ref>
  93.     <pkg-ref id="com.sidefx.geometryViewer-9.5.170.pkg" installKBytes="572" version="9.5.170" auth="Root">#geometryViewer.pkg</pkg-ref>
  94.     <pkg-ref id="com.sidefx.houdiniEscape-9.5.170.pkg" installKBytes="552" version="9.5.170" auth="Root">#houdiniEscape.pkg</pkg-ref>
  95.     <pkg-ref id="com.sidefx.houdini-9.5.170.pkg" installKBytes="576" version="9.5.170" auth="Root">#houdini.pkg</pkg-ref>
  96.     <pkg-ref id="com.sidefx.imageViewer-9.5.170.pkg" installKBytes="680" version="9.5.170" auth="Root">#imageViewer.pkg</pkg-ref>
  97.     <pkg-ref id="com.sidefx.licenseAdministrator-9.5.170.pkg" installKBytes="336" version="9.5.170" auth="Root">#licenseAdministrator.pkg</pkg-ref>
  98.     <pkg-ref id="com.sidefx.houdiniShell-9.5.170.pkg" installKBytes="4" version="9.5.170" auth="Root">#houdiniShell.pkg</pkg-ref>
  99.     <pkg-ref id="com.sidefx.houdiniuninstaller-9.5.170.pkg" installKBytes="532" version="9.5.170" auth="Root">#houdiniUninstaller.pkg</pkg-ref>
  100.     <pkg-ref id="com.sidefx.foldericon-9.5.170.pkg" installKBytes="292" version="9.5.170" auth="Root">#foldericon.pkg</pkg-ref>
  101.     <pkg-ref id="com.sidefx.framework-9.5.170.pkg" installKBytes="485828" version="9.5.170" auth="Root">#frameworkversion.pkg</pkg-ref>
  102.     <pkg-ref id="com.sidefx.ApprenticeLicensing-9.5.170.pkg" installKBytes="4" version="9.5.170" auth="Root">#licenses.pkg</pkg-ref>
  103.     <pkg-ref id="com.sidefx.sesinetd-9.5.170.pkg" installKBytes="4" version="9.5.170" auth="Root">#comsidefxsesinetd.pkg</pkg-ref>
  104. </installer-script>